import Vue from 'vue'
import Router from 'vue-router'

let selects = (resolve, reject) => {
  return require.ensure([],() => {
    resolve(require('@/components/selects'))
  })
}

let increment = (resolve, reject) => {
  return require.ensure([],() => {
    resolve(require('@/components/increment'))
  })
}

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
   {
     path: '/',
     name: 'selects',
     component: selects,
   },
   {
     path: '/increment',
     name: 'increment',
     component: increment
   }
  ]
})
